Skip to main content

hidden

Type

property

Summary

Specifies whether a line of text (paragraph) of a field is hidden from the user.

Syntax

set the hidden of <line> of <field> to {true | false}

Description

Use the hidden property to control whether lines of text in a field are hidden from the user.

If the hidden property of a line of text in a field is set to true, that line is hidden from the user. The content of the field remains unchanged however, allowing for the normal data parsing.

For example, take the following content of text in a field and their associated hidden property settings:

    This is the text of line 1 -- hidden property \'false\'
This is the text of line 2 -- hidden property \'true\'
This is the text of line 3 -- hidden property \'false\'

The user sees the following:

    This is the text of line 1
This is the text of line 3

Executing 'put line 2 of field' results in 'This is the text of line 2'.

Examples

set the hidden of line 2 of field 1 to true
-- Toggle visibility of a line
if the hidden of line 1 of field 1 is true then
set the hidden of line 1 of field 1 to false
else
set the hidden of line 1 of field 1 to true
end if

property: hScrollbar, listDepth, borderColor, tabstops, listBehavior, formattedWidth, textAlign, spaceBelow, rightIndent, firstIndent, formattedText, borderWidth, hgrid, spaceAbove, vgrid, dontWrap, backgroundColor, listStyle

Compatibility and Support

Introduced

LiveCode 5.5

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?